
import request from '@/utils/request'
import qs from 'qs'
import {getToken} from '@/utils/auth'
var token = getToken()
export function getSettlement(fromData) {
  return request({
    url: '/js/settlement',
    method: 'post',
    headers:{'Content-Type':'application/x-www-form-urlencoded'},
    data:qs.stringify(fromData,{indices:false})
  })
}
export function getTimeSettlement(fromData) {
  return request({
    url: '/js/time/settlement',
    method: 'post',
    headers:{'Content-Type':'application/x-www-form-urlencoded'},
    data:qs.stringify(fromData,{indices:false})
  })
}
  //导出
  export function getTimeExpor(data) {
    return request({
      url: '/time/settle/export',
      method: 'post',
      responseType:'blob',
      data
    })
  }
	//导出
	export function getTimeExporpl(data) {
	  return request({
	    url: '/ddOrder/de/settle/export',
	    method: 'post',
	    responseType:'blob',
	    data
	  })
	}
	//导出
	export function getTimeExporzg(data) {
	  return request({
	    url: '/ddOrder/sp/settle/export',
	    method: 'post',
	    responseType:'blob',
	    data
	  })
	}

